package com.china08.yxyapi.entity.mg.mistakes;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 
 * 学生错题试题</br>
 * 一个学生,在错题本项目中,查看此视频的次数. 2017.07.18
 * 
 * @author Richard Wang
 *
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.mistakes.stu.ques.weike")
public class StuMistakesQuesWeike extends MongoBaseEntityNoId {

    /** 主键 学生id */
    @Id
    private String id;

    /**
     * 学生id
     */
    @Indexed
    @Field(value = "student_id")
    private String studentId;

    /**
     * 此微课的观看次数
     */
    @Field(value = "times")
    private Integer times = 1;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

}
